<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
<body>
<ui:composition
        template="/common/template.xhtml">
    <ui:define name="title">Обработка файлов</ui:define>
    <ui:define name="body">
        <h:form id="dataFileForm">
            <rich:dataTable id="descriptions"
                            value="#{userDataBean.descriptions}"
                            var="description">
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Имя файла"/>
                    </f:facet>
                    <h:outputText value="#{description.name}"/>
                </rich:column>
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Действие"/>
                    </f:facet>
                    <h:commandLink id="startLink" value="Старт" action="#{userDataBean.startMapping}">
                        <f:param id="processedFileParam" name="processedFile" value="#{description.name}"/>
                    </h:commandLink>
                </rich:column>
            </rich:dataTable>
        </h:form>
    </ui:define>
</ui:composition>
</body>
</html>